package com.nine.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nine.dao.AnnouncementMapper;
import com.nine.entity.Announcement;
import com.nine.service.AnnouncementService;
@Service
public class AnnouncementServiceImpl implements AnnouncementService {
     @Autowired
	private  AnnouncementMapper announcementMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return announcementMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Announcement record) {
		// TODO Auto-generated method stub
		return announcementMapper.insert(record);
	}

	@Override
	public int insertSelective(Announcement record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Announcement selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return announcementMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Announcement record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Announcement record) {
		// TODO Auto-generated method stub
		return announcementMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<Announcement> getAllAnnouncement() {
		// TODO Auto-generated method stub
		return announcementMapper.getAllAnnouncement();
	}

}
